package com.busines.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.busines.practice.Knight;
import com.busines.practice.Quest;
import com.busines.practice.impl.BraveKnight;
import com.busines.practice.impl.SlayDragonQuest;

@Configuration
public class KnightConfig {

	@Bean
	public Knight knight(){
		return new BraveKnight(quest());
	}
	@Bean
	public Quest quest(){
		return new SlayDragonQuest(System.out);
	}
}
